#ifndef __WPTH_ARTSTATICBITMAP_H__
#define __WPTH_ARTSTATICBITMAP_H__

#include "defs.h"

class ArtPanel;

class ArtStaticBitmap : public wxControl
{
public:
	ArtStaticBitmap() {}
	ArtStaticBitmap(ArtPanel *parent,
		wxWindowID id,
		const wxBitmap& bitmap,
		const wxPoint& pos = wxDefaultPosition,
		const wxSize& size = wxDefaultSize,
		long style = wxNO_BORDER,
		const wxString& name = wxStaticTextNameStr);
	virtual ~ArtStaticBitmap() {}

	void SetBitmap(const wxBitmap& bitmap);

protected:
	void OnPaint(wxPaintEvent& event);
	void OnSize(wxSizeEvent& event);
	void OnEraseBackground(wxEraseEvent& event);

	wxSize DoGetBestSize() const;

protected:
	ArtPanel* m_artPanel;
	wxBitmap m_bitmap;

	DECLARE_CLASS(ArtStaticBitmap)
	DECLARE_EVENT_TABLE()
};

#endif